import request from '@/utils/http.js'

/**
 * 获取详情接口
 * @returns {*}
 */
export const getCheckoutAPI = () => {
    return request({
        url: '/member/order/pre',
        method: 'GET'
    })
}

/**
 * 生成订单id
 * @param data
 * @returns {*}
 */
export const createOrderAPI = (data) => {
    return request({
        url: '/member/order',
        method: 'POST',
        data
    })
}